package book

import (
	"context"
	"go_fream/internal/dao"
	"go_fream/internal/model/do"
	"go_fream/internal/model/entity"
	"go_fream/internal/service"
)

func init() {
	service.RegisterBool(&sBook{})
}

type sBook struct{}

func (s sBook) GetList(ctx context.Context) (books []entity.Book, err error) {
	//TODO implement me
	err = dao.Book.Ctx(ctx).Scan(&books)
	return
}

func (s sBook) Add(ctx context.Context, book do.Book) (err error) {
	//TODO implement me
	panic("implement me")
}

func (s sBook) Edit(ctx context.Context, book do.Book) (err error) {
	//TODO implement me
	panic("implement me")
}

func (s sBook) Del(ctx context.Context) (err error) {
	//TODO implement me
	panic("implement me")
}
